package com.WISSC.mapper;

import com.WISSC.bean.AuthorizationImage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 授权机构和图片关联表 Mapper 接口
 * </p>
 *
 * @author 张凯
 * @since 2019-05-08
 */
public interface AuthorizationImageMapper extends BaseMapper<AuthorizationImage> {
    /**
     *
     * @param grandId
     * @return 机构图片回显--url
     */
    List<AuthorizationImage> getImageUrl(@Param("id") Long grandId);

    int remove(@Param("id")Long id);

    void deleteByIdGrand(@Param("id")Long id);

    List<AuthorizationImage> getByGrantId(@Param("id")Long id);
}
